package com.panghl.controller;

import com.panghl.starter.service.ExampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Calendar;

@RestController
public class WebController {

    @Autowired
    private ExampleService exampleService;

    @GetMapping("/")
    public String toIndex(){
        return exampleService.wrap("<+++++++>");
    }

}
